<template>
    <div>
        <Header background-color="#E5EBFD" font-color="#000" :title="t('home.Mine.loan')">
            <template #left>
                <van-icon name="arrow-left" color="#000" size="25px" class="icon-left" @click="goBack()" />
            </template>
        </Header>
        <main>
            <h3>
                <span class="span">
                    {{ t('waitLoan.title1') }}
                </span>
                <span class="simple">
                    {{ t('waitLoan.simple') }}
                </span>
                <span class="span">
                    {{ t('waitLoan.title2') }}
                </span>
                <span class="easy">
                    {{ t('waitLoan.easy') }}
                </span>
            </h3>
            <div class="step">
                <van-steps :active="1" active-color="#07c160">
                    <van-step>信息填写</van-step>
                    <van-step>资质审核</van-step>
                    <van-step>确认贷款</van-step>
                    <van-step>放款到账</van-step>
                </van-steps>
            </div>
            <div class="card">
                <div class="title">{{ '申请便捷，审批迅速' }}</div>
                <div class="content">
                    <div class="items">
                        <div class="key">{{ '最高分期额度' }}</div>
                        <div class="value">{{ '100,000' }}</div>
                    </div>
                    <div class="items">
                        <div class="key">{{ '最高分期额度' }}</div>
                        <div class="value">{{ '100,000' }}</div>
                    </div>
                </div>
                <div class="btn" @click="goLoan">
                    {{ t('waitLoan.shenqing') }}
                </div>
            </div>
        </main>
    </div>
</template>

<script setup>
import Header from "@/components/Header/index.vue";
import myInput from '@/components/Input/index.vue';
import useLanguage from '@/hooks/useLanguage';
import { useRouter } from 'vue-router'
import { reactive, onMounted, ref } from 'vue'
import { userApi, loansApi } from '@/api'
import { showNotify } from 'vant';
const router = useRouter()
const { t } = useLanguage()


function goLoan() {
    router.push({ path: '/loan' })
}




function goBack() {
    router.go(-1)
}

onMounted(() => {

})
</script>

<style lang="less" scoped>
* {
    box-sizing: border-box;
}

.icon-left {
    margin-left: 10px;
}

main {
    padding: 10px 10px 0px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

    h3 {
        width: 100%;
        text-align: center;

        span {
            font-weight: 400;
            font-size: 20px;
        }

        .simple,
        .easy {
            color: #00D673;
        }
    }

    .step {
        width: 100%;
    }

    .card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 10px;
        width: 95%;
        border-radius: 10px;
        background: linear-gradient(35deg, #00D673 0%, #7DEDB9 100%);

        .title {
            padding: 10px 0px;
            width: 100%;
            color: #fff;
            border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        }

        .content {
            width: 100%;
            display: flex;
            justify-content: flex-start;
            padding: 10px 0px;

            .items {
                flex: 1;

                .key {
                    color: rgba(255, 255, 255, 0.85);
                    padding: 10px 0px;
                }

                .value {
                    color: #fff;
                    padding: 10px 0px;
                    font-size: 30px;
                    font-weight: 900;
                }
            }
        }

        .btn {
            width: 100%;
            padding: 10px 0px;
            color: #000;
            text-align: center;
            background: linear-gradient(0deg, #FFF5DA 0%, #F2FFFA 100%);
            border-radius: 50px;
            font-weight: 900;
        }

    }
}
</style>